import request from '@/utils/request'

const api = {
  drop_out: 'web/children/drop_out', // 退学
  graduate: 'web/children/graduate', // 毕业
  list: 'web/children/page', // 宝宝列表
  selChildrenMemorandumPage: 'web/children/selChildrenMemorandumPage', // 备忘录列表
  saveMemorandum: 'web/children/saveMemorandum', // 添加备忘录
  saveChildrenMemorandum: 'web/children/saveChildrenMemorandum', // 添加宝宝+备忘录
  delMemorandum: 'web/children/delMemorandum', // 删除备忘录
  delChildrenMemorandum: 'web/children/delChildrenMemorandum', // 删除宝宝+备忘录
  editMemorandum: 'web/children/editMemorandum', // 编辑备忘录
  addChildrenVaccines: 'web/children/addChildrenVaccines', // 批量新增新增宝宝疫苗信息
  selChildrenVaccinesPage: 'web/children/selChildrenVaccinesPage', // 宝宝疫苗列表
  delChildrenVaccines: 'web/children/delChildrenVaccines', // 删除宝宝疫苗
  editChildrenVaccines: 'web/children/editChildrenVaccines', // 编辑宝宝疫苗
  selChildrenVaccinesDetails: 'web/children/selChildrenVaccinesDetails', // 宝宝疫苗详情
  selClassDataStatistics: 'web/children/selClassDataStatistics' // 宝宝疫苗统计
}

export function selClassDataStatistics (params = {}) {
  return request({
    url: api.selClassDataStatistics,
    method: 'get',
    params
  })
}

export function selChildrenVaccinesDetails (params = {}) {
  return request({
    url: api.selChildrenVaccinesDetails,
    method: 'get',
    params
  })
}

export function editChildrenVaccines (params = {}) {
  return request({
    url: api.editChildrenVaccines,
    method: 'post',
    params
  })
}

export function delChildrenVaccines (params = {}) {
  return request({
    url: api.delChildrenVaccines,
    method: 'post',
    params
  })
}

export function selChildrenVaccinesPage (params = {}) {
  return request({
    url: api.selChildrenVaccinesPage,
    method: 'get',
    params
  })
}

export function addChildrenVaccines (params = {}) {
  return request({
    url: api.addChildrenVaccines,
    method: 'post',
    params
  })
}

export function editMemorandum (params = {}) {
  return request({
    url: api.editMemorandum,
    method: 'post',
    params
  })
}

export function delMemorandum (params = {}) {
  return request({
    url: api.delMemorandum,
    method: 'post',
    params
  })
}

export function delChildrenMemorandum (params = {}) {
  return request({
    url: api.delChildrenMemorandum,
    method: 'post',
    params
  })
}

export function selChildrenMemorandumPage (params = {}) {
  return request({
    url: api.selChildrenMemorandumPage,
    method: 'get',
    params
  })
}

export function details (params = {}) {
  return request({
    url: api.selChildrenMemorandumPage,
    method: 'get',
    params
  })
}

export function saveChildrenMemorandum (params = {}) {
  return request({
    url: api.saveChildrenMemorandum,
    method: 'post',
    params
  })
}

export function saveMemorandum (params = {}) {
  return request({
    url: api.saveMemorandum,
    method: 'post',
    params
  })
}

export function getList (params = {}) {
  return request({
    url: api.list,
    method: 'post',
    params
  })
}

export function dropOut (params = {}) {
  return request({
    url: api.drop_out,
    method: 'post',
    params
  })
}

export function graduate (params = {}) {
  return request({
    url: api.graduate,
    method: 'post',
    params
  })
}
